<template>
  <div>
    <a-card title="新增政策">
      <policyFormTemplate :policyFormDataJson = "policyFormData" ref="landForm"></policyFormTemplate>
    </a-card>
    <!-- fixed footer toolbar -->
    <footer-tool-bar>
      <a-button type="primary" :loading="loading" htmlType="submit" @click="saveFormData">提交</a-button>
    </footer-tool-bar>
  </div>
</template>

<script>
  let newDate = new Date().getFullYear()+"-"+new Date().getMonth()+1 +"-" +new Date().getDate();
  import FooterToolBar from '@/components/tools/FooterToolBar'
  import cities from '@/db/cities'
  import policyFormTemplate from './policy-form-template'
  export default {
    name: "AddLandReaource",
    components: {
      FooterToolBar,
      policyFormTemplate
    },
    data() {
      return {
        options:cities,
        loading: false,
        fileImgList:"",
        policyFormData:{
          title:"",
          sendPeople:"",
          date:newDate,
          area:"",
          keyWord:"",
          content:"",
        },

      }
    },
    methods: {
      handleDivisonChange(e){

      },

      saveFormData(){
        this.$refs.landForm.saveFormData();
      }
    },
  }
</script>

<style lang="scss" scoped>
  .card {
    margin-bottom: 24px;
  }
</style>